﻿using DevExpress.Xpo;
using Model.Base;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Model.Bill
{
    public class TB_OrderDetail : BaseXPObjectClass
    {
        public TB_OrderDetail(Session session) : base(session) { }
        public override void AfterConstruction()
        {
            base.AfterConstruction();
        }
        TB_Order fOrderID;
        [Association("Order-OrderDetail")]
        public TB_Order OrderID
        {
            get { return fOrderID; }
            set { SetPropertyValue<TB_Order>("OrderID", ref fOrderID, value); }
        }
        int fRowNum;
        public int RowNum
        {
            get { return fRowNum; }
            set { SetPropertyValue<int>("RowNum", ref fRowNum, value); }
        }
        B_Warehouse fWarehouseID;
        public B_Warehouse WarehouseID
        {
            get { return fWarehouseID; }
            set { SetPropertyValue<B_Warehouse>("WarehouseID", ref fWarehouseID, value); }
        }

        P_Product fProductID;
        public P_Product ProductID
        {
            get { return fProductID; }
            set { SetPropertyValue<P_Product>("ProductID", ref fProductID, value); }
        }
        int fProductType;
        public int ProductType
        {
            get { return fProductType; }
            set { SetPropertyValue<int>("ProductType", ref fProductType, value); }
        }
        decimal fQuantity;
        public decimal Quantity
        {
            get { return fQuantity; }
            set { SetPropertyValue<decimal>("Quantity", ref fQuantity, value); }
        }
        decimal fTurnoverPrice;
        public decimal TurnoverPrice
        {
            get { return fTurnoverPrice; }
            set { SetPropertyValue<decimal>("TurnoverPrice", ref fTurnoverPrice, value); }
        }
        decimal fTurnoverAmount;
        public decimal TurnoverAmount
        {
            get { return fTurnoverAmount; }
            set { SetPropertyValue<decimal>("TurnoverAmount", ref fTurnoverAmount, value); }
        }
        decimal fSalePrice;
        public decimal SalePrice
        {
            get { return fSalePrice; }
            set { SetPropertyValue<decimal>("SalePrice", ref fSalePrice, value); }
        }
        decimal fSalePriceLowest;
        public decimal SalePriceLowest
        {
            get { return fSalePriceLowest; }
            set { SetPropertyValue<decimal>("SalePriceLowest", ref fSalePriceLowest, value); }
        }
        decimal fCostPrice;
        public decimal CostPrice
        {
            get { return fCostPrice; }
            set { SetPropertyValue<decimal>("CostPrice", ref fCostPrice, value); }
        }
    }
}
